#ifndef MY_SPIN_BTN_H
#define MY_SPIN_BTN_H

#include <QWidget>
#include <QDoubleSpinBox>
#include <QPushButton>
#include <QHBoxLayout>
#include "common.h"

class My_spin_btn : public QWidget
{
    Q_OBJECT
public:
    My_spin_btn(const QString &title, QWidget *parent = nullptr);
    void setSingleStep(double val);
    void setMinimum(double val);
    double value();
    QPushButton* btn;
private:
    QDoubleSpinBox* spin;
    QHBoxLayout* box;

};

#endif // MY_SPIN_BTN_H
